define({ "api": [
  {
    "type": "get",
    "url": "/admin/admin/detail",
    "title": "获取管理员信息",
    "name": "GetDetailAdmin",
    "group": "Admin",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "adminname",
            "description": ""
          }
        ]
      }
    },
    "header": {
      "fields": {
        "Header": [
          {
            "group": "Header",
            "type": "string",
            "optional": false,
            "field": "token",
            "description": ""
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "code",
            "description": "<p>状态码.</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "message",
            "description": "<p>描述</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "HTTP/1.1 200 OK\n{\n  \"code\": \"200\",\n  \"message\": \"获取管理员信息\" ,\n   data\n}",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "/admin/admin/detail"
      }
    ],
    "version": "0.0.0",
    "filename": "admin/admin.js",
    "groupTitle": "Admin"
  },
  {
    "type": "post",
    "url": "/admin/admin/add",
    "title": "添加管理员",
    "name": "PostAddAdmin",
    "group": "Admin",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "adminname",
            "description": ""
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "password",
            "description": ""
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "role",
            "description": ""
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "checkedKeys",
            "description": ""
          }
        ]
      }
    },
    "header": {
      "fields": {
        "Header": [
          {
            "group": "Header",
            "type": "string",
            "optional": false,
            "field": "token",
            "description": ""
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "code",
            "description": "<p>状态码.</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "message",
            "description": "<p>描述</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "HTTP/1.1 200 OK\n{\n  \"code\": \"200\" || '10004',\n  \"message\": \"添加管理员成功\" || 该管理员已存在,\n}",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "/admin/admin/add"
      }
    ],
    "version": "0.0.0",
    "filename": "admin/admin.js",
    "groupTitle": "Admin"
  },
  {
    "type": "get",
    "url": "/admin/admin/list",
    "title": "管理员列表",
    "name": "PostAdminList",
    "group": "Admin",
    "header": {
      "fields": {
        "Header": [
          {
            "group": "Header",
            "type": "string",
            "optional": false,
            "field": "token",
            "description": ""
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "code",
            "description": "<p>状态码.</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "message",
            "description": "<p>描述</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "HTTP/1.1 200 OK\n{\n  \"code\": \"200\",\n  \"message\": \"管理员列表\" \n}",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "/admin/admin/list"
      }
    ],
    "version": "0.0.0",
    "filename": "admin/admin.js",
    "groupTitle": "Admin"
  },
  {
    "type": "post",
    "url": "/admin/admin/update",
    "title": "修改管理员信息",
    "name": "PostAdminUpdate",
    "group": "Admin",
    "header": {
      "fields": {
        "Header": [
          {
            "group": "Header",
            "type": "string",
            "optional": false,
            "field": "token",
            "description": ""
          }
        ]
      }
    },
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "adminname",
            "description": ""
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "password",
            "description": ""
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "role",
            "description": ""
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "checkedKeys",
            "description": ""
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "code",
            "description": "<p>状态码.</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "message",
            "description": "<p>描述</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "HTTP/1.1 200 OK\n{\n  \"code\": \"200\",\n\n  \"message\": \"修改管理员信息\" \n}",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "/admin/admin/update"
      }
    ],
    "version": "0.0.0",
    "filename": "admin/admin.js",
    "groupTitle": "Admin"
  },
  {
    "type": "post",
    "url": "/admin/admin/delete",
    "title": "删除管理员",
    "name": "PostDeleteAdmin",
    "group": "Admin",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "id",
            "description": ""
          }
        ]
      }
    },
    "header": {
      "fields": {
        "Header": [
          {
            "group": "Header",
            "type": "string",
            "optional": false,
            "field": "token",
            "description": ""
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "code",
            "description": "<p>状态码.</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "message",
            "description": "<p>描述</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "HTTP/1.1 200 OK\n{\n  \"code\": \"200\",\n  \"message\": \"删除管理员\" \n}",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "/admin/admin/delete"
      }
    ],
    "version": "0.0.0",
    "filename": "admin/admin.js",
    "groupTitle": "Admin"
  },
  {
    "type": "post",
    "url": "/admin/admin/login",
    "title": "管理系统登录",
    "name": "PostLogin",
    "group": "Admin",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "adminname",
            "description": "<p>管理员账号 admin</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "password",
            "description": "<p>密码 123456</p>"
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "code",
            "description": "<p>状态码.</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "message",
            "description": "<p>描述</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "HTTP/1.1 200 OK\n{\n  \"code\": \"200\" || '10003' || '10005',\n  \"message\": \"登录成功\" || 密码错误 ｜| 未注册,\n}",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "/admin/admin/login"
      }
    ],
    "version": "0.0.0",
    "filename": "admin/admin.js",
    "groupTitle": "Admin"
  },
  {
    "type": "post",
    "url": "/admin/banner/add",
    "title": "插入轮播图数据",
    "name": "AdminBannerAdd",
    "group": "Banner",
    "header": {
      "fields": {
        "Header": [
          {
            "group": "Header",
            "type": "String",
            "optional": false,
            "field": "token",
            "description": "<p>token</p>"
          }
        ]
      }
    },
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "img",
            "description": "<p>图片地址</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "alt",
            "description": "<p>提示信息</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "link",
            "description": "<p>链接地址</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "{\n  code: '200',\n  message: '插入轮播图数据'\n}",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "admin/banner.js",
    "groupTitle": "Banner"
  },
  {
    "type": "get",
    "url": "/admin/banner/delete",
    "title": "删除单条数据",
    "name": "AdminBannerDelete",
    "group": "Banner",
    "header": {
      "fields": {
        "Header": [
          {
            "group": "Header",
            "type": "String",
            "optional": false,
            "field": "token",
            "description": "<p>token</p>"
          }
        ]
      }
    },
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "bannerid",
            "description": "<p>轮播图id</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": " {\n   code: '200',\n   message: '查看轮播图数据',\ndata\n }",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "admin/banner.js",
    "groupTitle": "Banner"
  },
  {
    "type": "get",
    "url": "/admin/banner/list",
    "title": "查看轮播图数据",
    "name": "AdminBannerList",
    "group": "Banner",
    "header": {
      "fields": {
        "Header": [
          {
            "group": "Header",
            "type": "String",
            "optional": false,
            "field": "token",
            "description": "<p>token</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": " {\n   code: '200',\n   message: '查看轮播图数据',\ndata\n }",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "admin/banner.js",
    "groupTitle": "Banner"
  },
  {
    "type": "get",
    "url": "/admin/banner/removeAll",
    "title": "删除全部轮播图数据",
    "name": "AdminBannerRemoveAll",
    "group": "Banner",
    "header": {
      "fields": {
        "Header": [
          {
            "group": "Header",
            "type": "String",
            "optional": false,
            "field": "token",
            "description": "<p>token</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": " {\n   code: '200',\n   message: '删除全部轮播图数据',\ndata\n }",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "admin/banner.js",
    "groupTitle": "Banner"
  },
  {
    "type": "post",
    "url": "/admin/banner/updateFlag",
    "title": "访问状态更新",
    "name": "AdminBannerUpdateFlag",
    "group": "Banner",
    "header": {
      "fields": {
        "Header": [
          {
            "group": "Header",
            "type": "String",
            "optional": false,
            "field": "token",
            "description": "<p>token</p>"
          }
        ]
      }
    },
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "bannerid",
            "description": "<p>轮播图id</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "flag",
            "description": "<p>是否可用</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": " {\n   code: '200',\n   message: '访问状态更新成功',\ndata\n }",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "admin/banner.js",
    "groupTitle": "Banner"
  },
  {
    "type": "get",
    "url": "/admin/news/list",
    "title": "新闻列表",
    "name": "AdminNews",
    "group": "News",
    "header": {
      "fields": {
        "Header": [
          {
            "group": "Header",
            "type": "string",
            "optional": false,
            "field": "token",
            "description": ""
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "code",
            "description": "<p>状态码.</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "message",
            "description": "<p>描述</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "{\n  \"code\": \"200\",\n  \"message\": \"新闻列表\" \n}",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "admin/news.js",
    "groupTitle": "News"
  },
  {
    "type": "post",
    "url": "/admin/news/add",
    "title": "插入新闻",
    "name": "AdminNewsAdd",
    "group": "News",
    "header": {
      "fields": {
        "Header": [
          {
            "group": "Header",
            "type": "String",
            "optional": false,
            "field": "token",
            "description": "<p>token</p>"
          }
        ]
      }
    },
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "title",
            "description": "<p>新闻标题</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "desc",
            "description": "<p>新闻简介</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "author",
            "description": "<p>作者</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "createTime",
            "description": "<p>发布时间</p>"
          },
          {
            "group": "Parameter",
            "type": "Number",
            "optional": false,
            "field": "recommend",
            "description": "<p>是否推荐 1推荐 0 不推荐</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "content",
            "description": "<p>新闻内容</p>"
          },
          {
            "group": "Parameter",
            "type": "Number",
            "optional": false,
            "field": "flag",
            "description": "<p>是否可查看 1可以 0不可以</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "img",
            "description": "<p>新闻展示图</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "{\n  code: '200',\n  message: '插入新闻'\n}",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "admin/news.js",
    "groupTitle": "News"
  },
  {
    "type": "post",
    "url": "/admin/news/showFlag",
    "title": "显示可见新闻",
    "name": "showFlag",
    "group": "News",
    "header": {
      "fields": {
        "Header": [
          {
            "group": "Header",
            "type": "String",
            "optional": false,
            "field": "token",
            "description": "<p>token</p>"
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "code",
            "description": "<p>状态码.</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "message",
            "description": "<p>描述</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "data",
            "description": "<p>数据</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "HTTP/1.1 200 OK\n{\n  \"code\": \"200\",\n  \"message\": \"显示可见新闻\",\n  \"data\": []\n}",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "admin/news.js",
    "groupTitle": "News"
  },
  {
    "type": "post",
    "url": "/admin/news/showRecommend",
    "title": "显示推荐新闻",
    "name": "showRecommend",
    "group": "News",
    "header": {
      "fields": {
        "Header": [
          {
            "group": "Header",
            "type": "String",
            "optional": false,
            "field": "token",
            "description": "<p>token</p>"
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "code",
            "description": "<p>状态码.</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "message",
            "description": "<p>描述</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "data",
            "description": "<p>数据</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "HTTP/1.1 200 OK\n{\n  \"code\": \"200\",\n  \"message\": \"显示推荐新闻\",\n  \"data\": []\n}",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "admin/news.js",
    "groupTitle": "News"
  }
] });
